/ MacTech 1 to 12
/ MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.04 Apr 96 / ThreadingAppleEvents.sit / ThreadingAppleEvents / Grant's CGI Code 1.0b13 / Util / Version.c ![]() | < prev | next > |
MacBinary | 1995-12-09 | 1.6 KB | [TEXT/CWIE] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Sat Dec 9 11:48:10 1995, modified Sat Dec 9 11:48:10 1995, creator 'CWIE', type ASCII, 899 bytes "Version.c" , at 0x403 410 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CWIE] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 56 65 72 73 69 6f | 6e 2e 63 00 00 00 00 00 |..Versio|n.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 83 00 | 00 01 9a ac ef 6e 4a ac |........|.....nJ.|
|00000060| ef 6e 4a 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |.nJ.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e6 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 0d 20 2a 09 56 65 72 |/*****. |*. *.Ver|
|00000090| 73 69 6f 6e 2e 63 0d 20 | 2a 0d 20 2a 09 54 68 69 |sion.c. |*. *.Thi|
|000000a0| 73 20 69 73 20 61 20 73 | 75 70 70 6f 72 74 20 66 |s is a s|upport f|
|000000b0| 69 6c 65 20 66 6f 72 20 | 22 47 72 61 6e 74 27 73 |ile for |"Grant's|
|000000c0| 20 43 47 49 20 46 72 61 | 6d 65 77 6f 72 6b 22 2e | CGI Fra|mework".|
|000000d0| 0d 20 2a 09 50 6c 65 61 | 73 65 20 73 65 65 20 74 |. *.Plea|se see t|
|000000e0| 68 65 20 6c 69 63 65 6e | 73 65 20 61 67 72 65 65 |he licen|se agree|
|000000f0| 6d 65 6e 74 20 74 68 61 | 74 20 61 63 63 6f 6d 70 |ment tha|t accomp|
|00000100| 61 6e 69 65 73 20 74 68 | 65 20 64 69 73 74 72 69 |anies th|e distri|
|00000110| 62 75 74 69 6f 6e 20 70 | 61 63 6b 61 67 65 0d 20 |bution p|ackage. |
|00000120| 2a 09 66 6f 72 20 6c 69 | 63 65 6e 73 69 6e 67 20 |*.for li|censing |
|00000130| 64 65 74 61 69 6c 73 2e | 0d 20 2a 0d 20 2a 09 43 |details.|. *. *.C|
|00000140| 6f 70 79 72 69 67 68 74 | 20 a9 31 39 39 35 20 62 |opyright| .1995 b|
|00000150| 79 20 47 72 61 6e 74 20 | 4e 65 75 66 65 6c 64 0d |y Grant |Neufeld.|
|00000160| 20 2a 09 67 72 61 6e 74 | 40 61 63 6d 2e 63 6f 6d | *.grant|@acm.com|
|00000170| 0d 20 2a 09 68 74 74 70 | 3a 2f 2f 61 72 70 70 31 |. *.http|://arpp1|
|00000180| 2e 63 61 72 6c 65 74 6f | 6e 2e 63 61 2f 67 72 61 |.carleto|n.ca/gra|
|00000190| 6e 74 2f 0d 20 2a 0d 20 | 2a 2a 2a 2a 2a 2f 0d 0d |nt/. *. |*****/..|
|000001a0| 23 69 6e 63 6c 75 64 65 | 20 22 63 6f 6d 70 69 6c |#include| "compil|
|000001b0| 65 72 5f 73 74 75 66 66 | 2e 68 22 0d 0d 23 69 6e |er_stuff|.h"..#in|
|000001c0| 63 6c 75 64 65 20 22 56 | 65 72 73 69 6f 6e 2e 68 |clude "V|ersion.h|
|000001d0| 22 0d 0d 0d 2f 2a 2a 2a | 20 20 46 55 4e 43 54 49 |".../***| FUNCTI|
|000001e0| 4f 4e 53 20 20 2a 2a 2a | 2f 0d 0d 2f 2a 20 73 65 |ONS ***|/../* se|
|000001f0| 74 20 74 68 65 20 76 65 | 72 73 69 6f 6e 53 74 72 |t the ve|rsionStr|
|00000200| 69 6e 67 20 74 6f 20 74 | 68 65 20 73 68 6f 72 74 |ing to t|he short|
|00000210| 20 76 65 72 73 69 6f 6e | 20 73 74 72 69 6e 67 20 | version| string |
|00000220| 66 72 6f 6d 20 74 68 65 | 20 27 76 65 72 73 27 20 |from the| 'vers' |
|00000230| 72 65 73 6f 75 72 63 65 | 20 77 69 74 68 20 49 44 |resource| with ID|
|00000240| 20 72 65 73 49 44 20 2a | 2f 0d 76 6f 69 64 0d 56 | resID *|/.void.V|
|00000250| 65 72 73 69 6f 6e 47 65 | 74 53 68 6f 72 74 20 28 |ersionGe|tShort (|
|00000260| 20 73 68 6f 72 74 20 72 | 65 73 49 64 2c 20 53 74 | short r|esId, St|
|00000270| 72 32 35 35 20 76 65 72 | 73 69 6f 6e 53 74 72 69 |r255 ver|sionStri|
|00000280| 6e 67 20 29 0d 7b 0d 09 | 48 61 6e 64 6c 65 09 72 |ng ).{..|Handle.r|
|00000290| 65 73 6f 75 72 63 65 3b | 0d 0d 09 2f 2a 20 47 65 |esource;|.../* Ge|
|000002a0| 74 20 74 68 65 20 72 65 | 73 6f 75 72 63 65 20 2a |t the re|source *|
|000002b0| 2f 0d 09 72 65 73 6f 75 | 72 63 65 20 3d 20 47 65 |/..resou|rce = Ge|
|000002c0| 74 52 65 73 6f 75 72 63 | 65 20 28 20 27 76 65 72 |tResourc|e ( 'ver|
|000002d0| 73 27 2c 20 72 65 73 49 | 64 20 29 3b 0d 0d 09 69 |s', resI|d );...i|
|000002e0| 66 20 28 20 72 65 73 6f | 75 72 63 65 20 3d 3d 20 |f ( reso|urce == |
|000002f0| 6e 69 6c 20 29 0d 09 7b | 0d 09 09 76 65 72 73 69 |nil )..{|...versi|
|00000300| 6f 6e 53 74 72 69 6e 67 | 5b 30 5d 20 3d 20 6e 69 |onString|[0] = ni|
|00000310| 6c 3b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 7d 0d |l;...ret|urn;..}.|
|00000320| 09 0d 09 2f 2a 09 54 68 | 65 20 73 68 6f 72 74 20 |.../*.Th|e short |
|00000330| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 28 70 61 73 |descript|ion (pas|
|00000340| 63 61 6c 29 20 73 74 72 | 69 6e 67 20 73 74 61 72 |cal) str|ing star|
|00000350| 74 73 20 61 74 20 74 68 | 65 20 37 74 68 20 62 79 |ts at th|e 7th by|
|00000360| 74 65 20 2a 2f 0d 09 42 | 6c 6f 63 6b 4d 6f 76 65 |te */..B|lockMove|
|00000370| 20 28 20 28 53 74 72 69 | 6e 67 50 74 72 29 20 28 | ( (Stri|ngPtr) (|
|00000380| 2a 72 65 73 6f 75 72 63 | 65 29 20 2b 20 36 2c 20 |*resourc|e) + 6, |
|00000390| 76 65 72 73 69 6f 6e 53 | 74 72 69 6e 67 2c 20 28 |versionS|tring, (|
|000003a0| 2a 72 65 73 6f 75 72 63 | 65 29 5b 36 5d 20 2b 20 |*resourc|e)[6] + |
|000003b0| 31 20 29 3b 0d 0d 09 52 | 65 6c 65 61 73 65 52 65 |1 );...R|eleaseRe|
|000003c0| 73 6f 75 72 63 65 20 28 | 20 72 65 73 6f 75 72 63 |source (| resourc|
|000003d0| 65 20 29 3b 0d 7d 20 2f | 2a 20 56 65 72 73 69 6f |e );.} /|* Versio|
|000003e0| 6e 47 65 74 53 68 6f 72 | 74 20 2a 2f 0d 0d 0d 2f |nGetShor|t */.../|
|000003f0| 2a 2a 2a 2a 2a 20 20 45 | 4f 46 20 20 2a 2a 2a 2a |***** E|OF ****|
|00000400| 2a 2f 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |*/......|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000490| 00 00 10 59 0e 45 76 65 | 6e 74 54 72 61 63 6b 65 |...Y.Eve|ntTracke|
|000004a0| 72 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.c.....|........|
|000004b0| 09 56 65 72 73 69 6f 6e | 2e 63 02 00 00 00 54 45 |.Version|.c....TE|
|000004c0| 58 54 43 57 49 45 00 04 | 00 00 00 00 00 00 00 00 |XTCWIE..|........|
|000004d0| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 aa 21 f2 db 00 00 | 00 00 00 00 01 9a 00 00 |...!....|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 01 27 25 00 00 00 |........|...'%...|
|00000510| 10 6c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.l......|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 01 f6 25 00 | 00 00 10 6c 05 41 52 4a |......%.|...l.ARJ|
|00000540| 5f 58 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |_X......|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 02 3d |........|.......=|
|00000560| 25 00 00 00 10 6c 09 75 | 6e 61 72 6a 2e 64 6f 63 |%....l.u|narj.doc|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 05 01 b4 |........|...W....|
|000005b0| 02 19 00 57 00 05 01 b4 | 02 19 ac ef 27 5c 00 00 |...W....|....'\..|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000005d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000005e0| 00 00 00 46 00 99 33 fc | 23 fe 00 00 00 1c 00 46 |...F..3.|#......F|
|000005f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000600| 00 1e 03 ed ff ff 00 00 | 00 00 00 99 33 1c 03 f0 |........|....3...|
|00000610| ff ff 00 00 00 4c 00 99 | 33 14 00 00 00 00 00 00 |.....L..|3.......|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+